1
1
.
.
1
1
.
.
1
1
O
O
n
n
l
l
i
i
n
n
e
e
C
C
o
o
m
m
p
p
i
i
l
l
e
e
r
r
I
I
n
n
f
f
o
o
This tutorial shows how to create Kotlin Application using Online Compiler (lacks functionality compared to other options)
This is a great way to test Kotlin Code snippets without having to install anything on the computer.
Code that is to be executed needs to be written inside main() function.
C
C
r
r
e
e
a
a
t
t
e
e
A
A
p
p
p
p
l
l
i
i
c
c
a
a
t
t
i
i
o
o
n
n
https://play.kotlinlang.org
Run
Code
//===========================================================================================================
// CLASS: Person
//===========================================================================================================
class Person {
fun sayHello() { println("Hello") }
}
//===========================================================================================================
// FUNCTION: main
//===========================================================================================================
fun main() {
var john = Person()
john.sayHello()
}
Output
Hello
https://play.kotlinlang.org